<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //function 函数名（形参1，形参2...）{
        //函数体
        //  }
        //调用时，函数名（实参1，实参2...）；
        function cook(a) {   //a相当于一个变量
            console.log(a);
        }
        cook('酸辣土豆丝');//酸辣土豆丝为实参
        cook('肘子');
    </script>
</head>

<body>

</body>

</html>